.skin-container {
    width: 220px; /* 方框的宽度 */
    height: 250px; /* 方框的高度 */
    border: 2px solid #000; /* 方框边框 */
    position: relative; /* 确保可以绝对定位子元素 */
    overflow: hidden; /*防止内容溢出 */
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: 
        linear-gradient(45deg, rgba(255, 255, 255, 0.2) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.2) 75%, rgba(255, 255, 255, 0.2)),
        linear-gradient(45deg, rgba(255, 255, 255, 0.2) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.2) 75%, rgba(255, 255, 255, 0.2));
    background-size: 10px 10px; /* 方格大小 */
}

/* 通用样式 */
body {
    background-image: linear-gradient(rgba(188, 216, 183, 0.1), rgba(188, 216, 183, 0.2)), url("../img/p1.png");
    background-size: cover, cover;
    text-align: center;
    color: rgba(15, 83, 4, 1);
    font-family: 'SimHei', 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    

}

header {
    font-family: 'SimHei', 'Arial Black', sans-serif; /* 设置为黑体 */
    background: linear-gradient(135deg, rgba(134, 240, 157, 0.8), rgba(78, 214, 236, 0.8));
    color: white;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-align: left;
    font-size:25px;
}

main{

    justify-items: center; /* 水平居中 */

    display: grid;
    grid-template-columns: 1fr 1fr ; /* 定义两列 */
    grid-template-rows: 1fr 1fr;   /* 定义两行 */

    row-gap: 2px;
    column-gap: 5px; /* 设置列间距 */

    
    height: 100vh; /* 占满整个屏幕高度 */
    margin: 0;
}

input {
    font-family: 'SimHei', 'Arial Black', sans-serif;
    margin: 10px 0;
    padding: 15px 20px;
    width: 40%;
    font-size: medium;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

input:focus {
    outline: none;
    border-color: rgb(149, 218, 211);
}

.button_for_act {
    font-family: 'SimHei', 'Arial Black', sans-serif;
    margin-top: 20px;
    padding: 15px 20px;
    color: #fff;
    background: rgb(149, 218, 211);
    font-size: medium;
    border: none;
    border-radius: 5px;
    transition: background 0.3s ease;
    width: 40%;
}

.button_for_act:hover {
    background: rgb(129, 198, 191);
    cursor: pointer;
}

/* 修改按钮样式 */
.change_button {
    margin-top: 40px;
    color: #fff;
}

.change_button button {
    background: transparent;
    color: #fff;
    border: none;
    cursor: pointer;
    font-family: 'SimHei', 'Arial Black', sans-serif;
    font-size: larger;
    padding: 15px 30px;
    transition: color 0.3s ease;
}

.change_button button:hover {
    color: rgba(255, 255, 255, 0.7);
}

/* 图片展示区域 */
.show {
    margin-top: 2px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 5px;
    text-align: center;



    display: flex; /* 使用flexbox布局 */
    justify-content: space-between; /* 在水平方向上均匀分布 */
    align-items: center; /* 使元素在垂直方向上居中 */


    width:80%;
    height:60%;
}



.skins_default img {
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    margin-top: 10px;
    max-width: 200px;
}

/* 表单上传样式 */
.upload {
    margin-top: 20px;
    padding: 10px;
}

.upload input[type="file"] {
    font-family: 'SimHei', 'Arial Black', sans-serif;
    margin: 10px;
    padding: 10px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    transition: border-color 0.3s ease;
}

.upload input[type="submit"] {
    font-family: 'SimHei', 'Arial Black', sans-serif;
    margin-top: 10px;
    padding: 10px;
    color: white;
    background: rgb(149, 218, 211);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.upload input[type="submit"]:hover {
    background: rgb(129, 198, 191);
}

/* 页脚样式 */
footer {
    background-color: rgba(188, 216, 183, 0.2);
    margin-top: auto;
    text-align: center;
    padding: 20px;
    font-size: 1.2em;
    color: rgba(0, 0, 0, 0.7);
}

footer span {
    font-weight: bold;
}